import request from '../../api/request';

//获取用户列表
export const getuserList = data => {
	return request({
		url: '/admin/user/getList',
		method: 'get',
		params: data
	});
};
//获取权限组配置
export const getGroup = data => {
	return request({
		url: '/admin/common/getGroup',
		method: 'get',
		params: data
	});
};
//添加用户
export const addUser = data => {
	return request({
		url: '/admin/user/save',
		method: 'post',
		data: data
	});
};



//获取流程列表
export const getflowList = data => {
	return request({
		url: '/admin/flow/getList',
		method: 'get',
		params: data
	});
};
//获取审批人
export const getUserListcommon = data => {
	return request({
		url: '/admin/common/getUserList',
		method: 'get',
		params: data
	});
};

//添加流程
export const addFlow = data => {
	return request({
		url: '/admin/flow/save',
		method: 'post',
		data: data
	});
};



